/******************************************************************************
 * @File name   :      UserServiceImpl.java
 *
 * @Author      :      chen shixiang
 *
 * @Date        :      2011-10-10
 *
 * @Copyright Notice: 
 * Copyright (c) 2014 DMS, Inc. All  Rights Reserved.
 * This software is published under the terms of the DMS Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * 
 * ----------------------------------------------------------------------------
 * Date                   Who         Version        Comments
 * 2011-10-10 上午10:05:30        chen shixiang     1.0            Initial Version
 *****************************************************************************/
package com.cap.bts.framework.workbench.userlogin.service.impl;

import com.cap.bts.framework.workbench.userlogin.service.IUserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cap.bts.framework.common.exception.AppException;
import com.cap.bts.framework.common.service.impl.BaseServiceImpl;
import com.cap.bts.framework.usermgnt.domain.User;
import com.cap.bts.framework.usermgnt.service.IUserMgntService;

/**
 *
 */
@Transactional(rollbackFor = AppException.class)
@Service
@Repository("userServiceImpl")
public class UserServiceImpl extends BaseServiceImpl implements IUserService {
    @Autowired
    private IUserMgntService userService;
    
    public User lockDealerAccount(User loginUser) throws AppException {
        
        userService.lockDealerAccount(loginUser);

        return loginUser;
    }
}
